<template>
 <router-view  keep-alive>

 </router-view>
</template>
<script>
    // import draw from './profileDetails'

    export default {
      name:'_trainDetails',
        components: {
            // draw
        },
        data() {
            return {
                APP_BASE_API: process.env.VUE_APP_BASE_API,
                ENV: process.env.VUE_APP_ENV,



            }
        },
        computed: {
          },
        watch: {
           $route: {
                handler: function(route) {
                  // debugger
                    this.target = route.query && route.query.target
                    this.id = route.query.id || route.query.id === 0
                },
                immediate: true
            },

        },
        created() {
        const query = this.$route.query

            //this.fetchData()
        },
        mounted() {

          // debugger
        },
        methods: {

        },
        beforeRouteLeave(to, from, next) {
            // this.$confirm('Do you really want to leave? you have unsaved changes?', '提示', {
            //     confirmButtonText: 'Yes',
            //     cancelButtonText: 'ON',
            //     type: 'warning'
            // }).then(() => {
            //     next()
            // }).catch(() => {
            //     next(false)
            // })
            next()
        }
    }
</script>
<style lang="scss">
  html #courseAddEdit{
.el-checkbox-button .el-checkbox-button__inner{
     padding:8px 10px;border-radius: 4px;
      }
   .el-form-item{
   flex: auto;
    text-align: center;
   }
  }
</style>
<style lang="scss" scoped>

 .call_method_box .el-col{
  line-height: 40px;
 }

 .app-container .add-page{
   min-height:80vh;
   position: relative;
  // .el-button{margin: 10px 0;}
   .solid-row{
     padding:0 15px;
   }
    .iconBtn i{
      &.editOk{
        color: red;
      }
      font-size: 1.2rem;
    }
   .ul-input{
         margin:10px 0;
   }
   .el-select{
   padding: 0;
   display: block;
   .el-input__inner{
      display: block;
   }
 }

//    .el-form-item{
//    position: absolute;bottom: 0;width:100%;
//  }
   }
</style>
